package com.baichang.taoshunda.dao;

import com.baichang.framework.dao.BaseDao;
import com.baichang.framework.excelption.DBException;
import com.baichang.framework.model.Page;
import com.baichang.taoshunda.entity.ParamsType;

import java.util.Map;

public interface ParamsTypeDao extends BaseDao<ParamsType> {
    /**
     * @param nowPage
     * @param pageSize
     * @param typeId
     * @param paramsName
     * @return
     * @throws DBException
     */
    Page<Map<String, Object>> paramsType(int nowPage, int pageSize, int typeId, String paramsName) throws DBException;

    /**
     * @param map
     * @param id
     * @return
     * @throws DBException
     */
    int update(Map<String, Object> map, int id) throws DBException;
}